local skel = fk.CreateSkill {
  name = "emo__zhaoya",
}

Fk:loadTranslationTable{
  ["emo__zhaoya"] = "钢铁爪牙",
  [":emo__zhaoya"] = "出牌阶段限三次，你可以弃置所有手牌并对一名角色造成1点伤害。",

  ["#emo__zhaoya"] = "钢铁爪牙：弃置所有手牌，对一名角色造成1点伤害",
  ["$emo__zhaoya"] = "（龙吼）",
}

skel:addEffect("active", {
  anim_type = "offensive",
  prompt = "#emo__zhaoya",
  card_num = 0,
  target_num = 1,
  card_filter = Util.FalseFunc,
  target_filter = function (self, player, to_select, selected)
    return #selected == 0
  end,
  times = function (self, player)
    return 3 - player:usedSkillTimes(skel.name, Player.HistoryPhase)
  end,
  can_use = function(self, player)
    if player:usedSkillTimes(skel.name, Player.HistoryPhase) < 3 then
      local hand = player:getCardIds("h")
      return #hand > 0 and table.every(hand, function (id)
        return not player:prohibitDiscard(id)
      end)
    end
  end,
  on_use = function(self, room, effect)
    local player = effect.from
    local to = effect.tos[1]
    room:throwCard(player:getCardIds("h"), skel.name, player, player)
    room:damage { from = player, to = to, damage = 1, skillName = skel.name }
  end,
})

return skel
